//
//  TableerRow.m
//  mac2
//
//  Created by 李劭华 on 2021/7/26.
//
#import <Masonry/Masonry.h>
#import "TableerRow.h"
@interface TableerRow()

@end
@implementation TableerRow

- (void)drawRect:(NSRect)dirtyRect {
    [super drawRect:dirtyRect];
    
    // Drawing code here.
   

}

//绘制选中状态的背景
-(void)drawSelectionInRect:(NSRect)dirtyRect
{
    NSRect selectionRect = NSInsetRect(self.bounds, 0, 0);
    [[NSColor colorWithCalibratedWhite:.72 alpha:1.0] setStroke];
    [[NSColor colorWithCalibratedWhite:.82 alpha:1.0] setFill];
    NSBezierPath *selectionPath = [NSBezierPath bezierPathWithRoundedRect:selectionRect xRadius:4 yRadius:4];
    [selectionPath fill];
    [selectionPath stroke];
}
//绘制背景
-(void)drawBackgroundInRect:(NSRect)dirtyRect
{
    [super drawBackgroundInRect:dirtyRect];
    [[NSColor whiteColor] setFill];
    NSRectFill(dirtyRect);
}



@end
